package com.opeartion.service.impl;

import com.opeartion.dao.StoreManagerMapper;
import com.opeartion.pojo.StoreManager;
import com.opeartion.service.StoreManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author sanshi
 * @version 1.0
 * @data 2020/6/6-14:58
 */

@Service
public class StoreManagerImpl implements StoreManagerService {
    @Autowired
    private StoreManagerMapper storeManagerMapper;

    @Override
    public void UpdateManager(List<StoreManager> storeManagers) {
        if (storeManagers!=null)
        for (StoreManager storeManager : storeManagers) {
            storeManagerMapper.UpdateManager(
                    storeManager.getPutaway(),
                    storeManager.getPrice(),
                    storeManager.getCoupon(),
                    storeManager.getId()
                    );
        }

    }
}
